#!/bin/bash
set -euo pipefail
BaseDir=$(cd "$(dirname "$0")"; pwd)
cd ${BaseDir}

[ -f ./SourceHanSerifCN.zip ] || 
curl -fL -O "https://mirrors.tuna.tsinghua.edu.cn/adobe-fonts/source-han-serif/SubsetOTF/SourceHanSerifCN.zip"

docker build -t openeuler:24.03-lts_openjdk .

docker run -it --rm --name tmpopenjdk openeuler:24.03-lts_openjdk bash

cat <<EOF

# java -version
openjdk version "1.8.0_432"
OpenJDK Runtime Environment BiSheng (build 1.8.0_432-b06)
OpenJDK 64-Bit Server VM BiSheng (build 25.432-b06, mixed mode)

EOF